package com.layblog.es.search.repository;

import com.layblog.es.search.model.LayPostDocument;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * 只需要继承ElasticsearchRepository，调用其search()方法，接口之间的继承关系：
 *
 * @Index——>Repository——>CrudRepository——>PageAndSortRepository——>ElasticSearchCrudRepository——>ElasticSearchRepository
 * @Author 林必昭
 * @Date 2021/9/7 10:52
 */

@Repository
public interface LayPostRepository extends ElasticsearchRepository<LayPostDocument, Long> {
}
